package com.example.job_backend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.job_backend.model.Query.UserQuery;
import com.example.job_backend.model.User;
import com.github.pagehelper.PageInfo;

import java.util.List;


public interface UserService extends IService<User> {
    User login(String username, String password, String role);

    User findByUsername(String username);

    //实现按条件搜索功能的时候用的，增加分页查询后就不用了
//    List<User> searchUser(String username,String realName,String classes);
    PageInfo<User> getUserByPage(UserQuery query);

    void changePassword(String username, String oldPassword, String newPassword);

    List<User> getAllStudents();

}
